package com.fingard.dsp.bank.directbank.nnbill01.wsdl.balancedetail;

public class BalancedetailProxy implements Balancedetail {
  private String _endpoint = null;
  private Balancedetail balancedetail = null;
  
  public BalancedetailProxy() {
    _initBalancedetailProxy();
  }
  
  public BalancedetailProxy(String endpoint) {
    _endpoint = endpoint;
    _initBalancedetailProxy();
  }
  
  private void _initBalancedetailProxy() {
    try {
      balancedetail = (new BalancedetailServiceLocator()).getBalancedetailSoap11();
      if (balancedetail != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)balancedetail)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)balancedetail)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (balancedetail != null)
      ((javax.xml.rpc.Stub)balancedetail)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public Balancedetail getBalancedetail() {
    if (balancedetail == null)
      _initBalancedetailProxy();
    return balancedetail;
  }
  
  public BalanceDetailResponse balanceDetail(BalanceDetailRequest balanceDetailRequest) throws java.rmi.RemoteException{
    if (balancedetail == null)
      _initBalancedetailProxy();
    return balancedetail.balanceDetail(balanceDetailRequest);
  }
  
  
}